import Layout from '@/layouts/BasicLayout'
import LayoutInset from '@/layouts/LayoutInset'

const expensePlan = {
    path: '/expense-plan',
    component: Layout,
    name: 'ExpensePlan',
    meta: {
        title: '预算计划',
        code: 'dlyh_r_a3_1'
    },
    redirect: '/expense-plan/budget/budgeting/index',
    children: [
        {
            path: 'budget',
            component: LayoutInset,
            name: 'BudgetManage',
            meta: {
                title: '养护预算管理',
                iconSvg: 'budget',
                code: 'dlyh_a3_b5_1'
            },
            redirect: '/expense-plan/budget/budgeting/index',
            children: [
                {
                    path: 'budgeting',
                    name: 'Budgeting',
                    meta: {
                        title: '预算编制',
                        code: 'dlyh_b5_c87_1'
                    },
                    component: LayoutInset,
                    redirect: '/expense-plan/budget/budgeting/index',
                    children: [
                        {
                            path: 'index',
                            name: 'BudgetingIndex',
                            meta: {
                                title: '列表',
                                componentName: 'BudgetingIndex',
                                details: [
                                    'BudgetingEdit',
                                    'BudgetingQuarterEdit',
                                    'BudgetingMonthEdit',
                                    'BudgetingDetail',
                                    'BudgetingQuarterAdd',
                                    'BudgetingMonthAdd'
                                ]
                            },
                            component: () => import('@/views/expense-plan/budget/budgeting/index'),
                            hide: true
                        },
                        {
                            path: 'add',
                            name: 'BudgetingAdd',
                            meta: {
                                title: '新建',
                                activeMenu: '/expense-plan/budget/budgeting/index'
                            },
                            component: () => import('@/views/expense-plan/budget/budgeting/add'),
                            hide: true
                        },
                        // {
                        //     path: 'change',
                        //     name: 'BudgetingChange',
                        //     meta: {
                        //         title: '变更',
                        //         activeMenu: '/expense-plan/budget/budgeting/index'
                        //     },
                        //     component: () => import('@/views/expense-plan/budget/budgeting/add'),
                        //     hide: true
                        // },
                        // {
                        //     path: 'quarter-add',
                        //     name: 'BudgetingQuarterAdd',
                        //     meta: {
                        //         title: '新建',
                        //         activeMenu: '/expense-plan/budget/budgeting/index'
                        //     },
                        //     component: () => import('@/views/expense-plan/budget/budgeting/quarter-add'),
                        //     hide: true
                        // },
                        // {
                        //     path: 'quarter-change',
                        //     name: 'BudgetingQuarterChange',
                        //     meta: {
                        //         title: '变更',
                        //         activeMenu: '/expense-plan/budget/budgeting/index'
                        //     },
                        //     component: () => import('@/views/expense-plan/budget/budgeting/quarter-add'),
                        //     hide: true
                        // },
                        // {
                        //     path: 'month-add',
                        //     name: 'BudgetingMonthAdd',
                        //     meta: {
                        //         title: '新建',
                        //         activeMenu: '/expense-plan/budget/budgeting/index'
                        //     },
                        //     component: () => import('@/views/expense-plan/budget/budgeting/quarter-add'),
                        //     hide: true
                        // },

                        // {
                        //     path: 'month-change',
                        //     name: 'BudgetingMonthChange',
                        //     meta: {
                        //         title: '变更',
                        //         activeMenu: '/expense-plan/budget/budgeting/index'
                        //     },
                        //     component: () => import('@/views/expense-plan/budget/budgeting/quarter-add'),
                        //     hide: true
                        // },
                        {
                            path: 'edit',
                            name: 'BudgetingEdit',
                            meta: {
                                title: '编辑',
                                activeMenu: '/expense-plan/budget/budgeting/index'
                            },
                            component: () => import('@/views/expense-plan/budget/budgeting/add'),
                            hide: true
                        },
                        // {
                        //     path: 'quarter-edit',
                        //     name: 'BudgetingQuarterEdit',
                        //     meta: {
                        //         title: '编辑',
                        //         activeMenu: '/expense-plan/budget/budgeting/index'
                        //     },
                        //     component: () => import('@/views/expense-plan/budget/budgeting/quarter-add'),
                        //     hide: true
                        // },
                        // {
                        //     path: 'month-edit',
                        //     name: 'BudgetingMonthEdit',
                        //     meta: {
                        //         title: '编辑',
                        //         activeMenu: '/expense-plan/budget/budgeting/index'
                        //     },
                        //     component: () => import('@/views/expense-plan/budget/budgeting/quarter-add'),
                        //     hide: true
                        // },
                        {
                            path: 'detail',
                            name: 'BudgetingDetail',
                            meta: {
                                title: '详情',
                                activeMenu: '/expense-plan/budget/budgeting/index'
                            },
                            component: () => import('@/views/expense-plan/budget/budgeting/detail'),
                            hide: true
                        }
                    ]
                },
                {
                    path: 'budgeting-old',
                    name: 'BudgetingOld',
                    meta: {
                        title: '预算编制',
                        code: 'dlyh_b5_c13_1'
                    },
                    component: LayoutInset,
                    redirect: '/expense-plan/budget/budgeting-old/index',
                    children: [
                        {
                            path: 'index',
                            name: 'BudgetingOldIndex',
                            meta: {
                                title: '列表',
                                componentName: 'BudgetingOldIndex',
                                details: [
                                    'BudgetingEdit',
                                    'BudgetingQuarterEdit',
                                    'BudgetingMonthEdit',
                                    'BudgetingDetail',
                                    'BudgetingQuarterAdd',
                                    'BudgetingMonthAdd'
                                ]
                            },
                            component: () => import('@/views/expense-plan/budget/budgeting-old/index'),
                            hide: true
                        },
                        {
                            path: 'add',
                            name: 'BudgetingOldAdd',
                            meta: {
                                title: '新建',
                                activeMenu: '/expense-plan/budget/budgeting-old/index'
                            },
                            component: () => import('@/views/expense-plan/budget/budgeting-old/add'),
                            hide: true
                        },
                        {
                            path: 'change',
                            name: 'BudgetingChange',
                            meta: {
                                title: '变更',
                                activeMenu: '/expense-plan/budget/budgeting-old/index'
                            },
                            component: () => import('@/views/expense-plan/budget/budgeting-old/add'),
                            hide: true
                        },
                        {
                            path: 'quarter-add',
                            name: 'BudgetingQuarterAdd',
                            meta: {
                                title: '新建',
                                activeMenu: '/expense-plan/budget/budgeting-old/index'
                            },
                            component: () => import('@/views/expense-plan/budget/budgeting-old/quarter-add'),
                            hide: true
                        },
                        {
                            path: 'quarter-change',
                            name: 'BudgetingQuarterChange',
                            meta: {
                                title: '变更',
                                activeMenu: '/expense-plan/budget/budgeting-old/index'
                            },
                            component: () => import('@/views/expense-plan/budget/budgeting-old/quarter-add'),
                            hide: true
                        },
                        {
                            path: 'month-add',
                            name: 'BudgetingMonthAdd',
                            meta: {
                                title: '新建',
                                activeMenu: '/expense-plan/budget/budgeting-old/index'
                            },
                            component: () => import('@/views/expense-plan/budget/budgeting-old/quarter-add'),
                            hide: true
                        },

                        {
                            path: 'month-change',
                            name: 'BudgetingMonthChange',
                            meta: {
                                title: '变更',
                                activeMenu: '/expense-plan/budget/budgeting-old/index'
                            },
                            component: () => import('@/views/expense-plan/budget/budgeting-old/quarter-add'),
                            hide: true
                        },
                        {
                            path: 'edit',
                            name: 'BudgetingOldEdit',
                            meta: {
                                title: '编辑',
                                activeMenu: '/expense-plan/budget/budgeting-old/index'
                            },
                            component: () => import('@/views/expense-plan/budget/budgeting-old/add'),
                            hide: true
                        },
                        {
                            path: 'quarter-edit',
                            name: 'BudgetingQuarterEdit',
                            meta: {
                                title: '编辑',
                                activeMenu: '/expense-plan/budget/budgeting-old/index'
                            },
                            component: () => import('@/views/expense-plan/budget/budgeting-old/quarter-add'),
                            hide: true
                        },
                        {
                            path: 'month-edit',
                            name: 'BudgetingMonthEdit',
                            meta: {
                                title: '编辑',
                                activeMenu: '/expense-plan/budget/budgeting-old/index'
                            },
                            component: () => import('@/views/expense-plan/budget/budgeting-old/quarter-add'),
                            hide: true
                        },
                        {
                            path: 'detail',
                            name: 'BudgetingOldDetail',
                            meta: {
                                title: '详情',
                                activeMenu: '/expense-plan/budget/budgeting-old/index'
                            },
                            component: () => import('@/views/expense-plan/budget/budgeting-old/detail'),
                            hide: true
                        }
                    ]
                },
                // {
                //     path: 'forms',
                //     name: 'BudgetForms',
                //     meta: {
                //         title: '机构预算报表',
                // code: 'dlyh_b5_c12_1'
                //     },
                //     component: LayoutInset,
                //     redirect: '/expense-plan/budget/forms/index',
                //     children: [
                //         {
                //             path: 'index',
                //             name: 'BudgetFormsIndex',
                //             meta: {
                //                 title: '列表',
                //                 activeMenu: '/expense-plan/budget/forms/index'
                //             },
                //             component: () => import('@/views/expense-plan/budget/forms/index'),
                //             hide: true
                //         }
                //     ]
                // }
            ]
        },
        {
            path: 'plan',
            component: LayoutInset,
            name: 'PlanManage',
            meta: {
                title: '养护计划管理',
                iconSvg: 'plan',
                code: 'dlyh_a3_b6_1'
            },
            redirect: '/expense-plan/plan/road/index',
            children: [
                {
                    path: 'road',
                    name: 'RoadPlan',
                    meta: {
                        title: '计划编制',
                        code: 'dlyh_b6_c14_1'
                    },
                    component: LayoutInset,
                    redirect: '/expense-plan/plan/road/index',
                    children: [
                        {
                            path: 'index',
                            name: 'RoadPlanIndex',
                            meta: {
                                title: '列表',
                                componentName: 'RoadPlanIndex',
                                details: [
                                    'RoadPlanEdit',
                                    'RoadPlanQuarterEdit',
                                    'RoadPlanMonthEdit',
                                    'RoadPlanDetail',
                                    'RoadPlanQuarterAdd',
                                    'RoadPlanMonthAdd'
                                ]
                            },
                            component: () => import('@/views/expense-plan/plan/road/index'),
                            hide: true
                        },
                        {
                            path: 'add',
                            name: 'RoadPlanAdd',
                            meta: {
                                title: '新建',
                                activeMenu: '/expense-plan/plan/road/index'
                            },
                            component: () => import('@/views/expense-plan/plan/road/add'),
                            hide: true
                        },
                        {
                            path: 'change',
                            name: 'RoadPlanChange',
                            meta: {
                                title: '变更',
                                activeMenu: '/expense-plan/plan/road/index'
                            },
                            component: () => import('@/views/expense-plan/plan/road/add'),
                            hide: true
                        },
                        {
                            path: 'quarter-add',
                            name: 'RoadPlanQuarterAdd',
                            meta: {
                                title: '新建',
                                activeMenu: '/expense-plan/plan/road/index'
                            },
                            component: () => import('@/views/expense-plan/plan/road/add'),
                            hide: true
                        },
                        {
                            path: 'quarter-change',
                            name: 'RoadPlanQuarterChange',
                            meta: {
                                title: '变更',
                                activeMenu: '/expense-plan/plan/road/index'
                            },
                            component: () => import('@/views/expense-plan/plan/road/quarter-add'),
                            hide: true
                        },
                        {
                            path: 'month-add',
                            name: 'RoadPlanMonthAdd',
                            meta: {
                                title: '新建',
                                activeMenu: '/expense-plan/plan/road/index'
                            },
                            component: () => import('@/views/expense-plan/plan/road/add'),
                            hide: true
                        },
                        {
                            path: 'month-change',
                            name: 'RoadPlanMonthChange',
                            meta: {
                                title: '变更',
                                activeMenu: '/expense-plan/plan/road/index'
                            },
                            component: () => import('@/views/expense-plan/plan/road/quarter-add'),
                            hide: true
                        },
                        {
                            path: 'edit',
                            name: 'RoadPlanEdit',
                            meta: {
                                title: '编辑',
                                activeMenu: '/expense-plan/plan/road/index'
                            },
                            component: () => import('@/views/expense-plan/plan/road/add'),
                            hide: true
                        },
                        {
                            path: 'quarter-edit',
                            name: 'RoadPlanQuarterEdit',
                            meta: {
                                title: '编辑',
                                activeMenu: '/expense-plan/plan/road/index'
                            },
                            component: () => import('@/views/expense-plan/plan/road/add'),
                            hide: true
                        },
                        {
                            path: 'month-edit',
                            name: 'RoadPlanMonthEdit',
                            meta: {
                                title: '编辑',
                                activeMenu: '/expense-plan/plan/road/index'
                            },
                            component: () => import('@/views/expense-plan/plan/road/add'),
                            hide: true
                        },
                        {
                            path: 'detail',
                            name: 'RoadPlanDetail',
                            meta: {
                                title: '详情',
                                activeMenu: '/expense-plan/plan/road/index'
                            },
                            component: () => import('@/views/expense-plan/plan/road/detail'),
                            hide: true
                        }
                    ]
                }
                // {
                //     path: 'forms',
                //     name: 'PlanForms',
                //     meta: {
                //         title: '机构计划报表',
                // code: 'dlyh_b6_c14_1'
                //     },
                //     component: LayoutInset,
                //     redirect: '/expense-plan/plan/forms/index',
                //     children: [
                //         {
                //             path: 'index',
                //             name: 'PlanFormsIndex',
                //             meta: {
                //                 title: '列表',
                //                 activeMenu: '/expense-plan/plan/forms/index'
                //             },
                //             component: () => import('@/views/expense-plan/plan/forms/index'),
                //             hide: true
                //         }
                //     ]
                // }
            ]
        }
    ]
}
export default expensePlan
